package com.zhp.config;

import com.zhp.processor.NameProcessor;
import com.zhp.processor.NameSpelExpressionProcessor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @author zhanghp
 * @since 2024/5/24 14:42
 */
@Component
public class BeanConfiguration {

    @Bean
    @ConditionalOnMissingBean
    public NameProcessor nameProcessor() {
       return new NameSpelExpressionProcessor();
    }
}
